<?php
namespace app\sw\model;

use think\Model;

class SheetTemplateFieldModel extends Model{
    protected $name = 'sw_sheet_template_field';
    protected $pk = 'id';

    // protected $append = ['department'];

    public function department(){
        return $this->hasOne(DepartmentModel::class, 'id', 'department_id');
    }
}   